home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / programm / GNU_C++ / LIB / SRC / GEMLIB38.LZH / a_fsel.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-10  |  880 b   |  41 lines

  1. /*
  2.  * Aes file selector library interface
  3.  *
  4.  * ++jrb bammi@cadence.com
  5.  * modified: mj -- ntomczak@vm.ucs.ualberta.ca
  6.  * modified: cf -- felsch@tu-harburg.de
  7.  */
  8. #include "gem.h"
  9.  
  10.  
  11. int fsel_exinput(char *path, char *file, int *exit_but, char *title)
  12. {
  13.    aes_addrin[0] = (long)path;  
  14.    aes_addrin[1] = (long)file;  
  15.    aes_addrin[2] = (long)title;
  16.     aes_control[0] = 91;
  17.     aes_control[1] = 0;
  18.     aes_control[2] = 2;
  19.     aes_control[3] = 3;
  20.     aes_control[4] = 0;
  21.     aes(&aes_params);
  22.    *exit_but = aes_intout[1];
  23.    return aes_intout[0];
  24. }
  25.  
  26. int fsel_input(char *path, char *file, int *exit_but)
  27. {
  28.    aes_addrin[0] = (long)path;  
  29.    aes_addrin[1] = (long)file;  
  30.     aes_control[0] = 90;
  31.     aes_control[1] = 0;
  32.     aes_control[2] = 2;
  33.     aes_control[3] = 2;
  34.     aes_control[4] = 0;
  35.     aes(&aes_params);
  36.    *exit_but = aes_intout[1];
  37.    return aes_intout[0];
  38. }
  39.  
  40.  
  41.